package com.hr.salary.dao;

import java.util.List;

import com.hr.salary.domain.Salary;
import com.hr.salary.domain.SalaryRS;
import com.hr.user.domain.User;
import com.hr.utils.PageBean;

public interface SalaryDao {
	/**
	 * 分页查询所有员工的工资记录
	 * @param PageCurrent
	 * @param PageSize
	 * @return
	 */
	public PageBean<Salary> queryAll_Page(int PageCurrent,int PageSize);
	
	/**
	 * 通过用户id查询
	 * @param user_id
	 * @return
	 */
	public String findByUserID(String user_id);
	
	/**
	 * 添加奖惩记录
	 * @param params
	 */
	public void addSalaryRP(Object[] params);
	
	/**
	 * 查询需要审核信息
	 * @param PageCurrent
	 * @param PageSize
	 * @return
	 */
	public PageBean<SalaryRS> queryAll_Page_SalaryRS(int PageCurrent, int PageSize, String salary_id);

	public void checkPass(String pro_id);
	
	public void checkPassUpdateSalaryReal(String salary_id, String user_id,
			String pro_money, String month, String year);
	
	public void checkRefuse(String pro_id);
	
	public void checkRefuseUpdateSalaryReal(String salary_id, String user_id,
			String pro_money, String month, String year);
	
	public Salary findBySalaryId(String salary_id);

	public void updateSalary(Object[] params);
	
	public PageBean<SalaryRS> queryAll_Page_SalaryRS(int PageCurrent, int PageSize,
			User user);
	
	public List<Salary> findSalaryByUserID(String user_id);
	
	public void addSalary(Salary salary);
	
	public void deleteApplyByPerson(String pro_id, String salary_id, String user_id,
			String month, String year);
}
